package com.code.day06;

import java.security.KeyStore;

public class MathTools {
    public  int add(int a,int b){
        int result = a+b;
        return result;
    }

    public  int sub(int a,int b){
        int result = a-b;
        return result;
    }

    public  int mul(int a,int b){
        int result = a*b;
        return result;
    }

    public  int div(int a,int b){
        int result = a/b;
        return result;
    }

    public  int mod(int a,int b){
        int result = a%b;
        return result;
    }

    public  int max(int a,int b){
        if (a>b){
            return a;
        }else {
            return b;
        }
    }

    public  int min(int a,int b){
        if (a<b){
            return a;
        }else {
            return b;
        }
    }

    public  boolean equals(int a,int b){
        if (a==b){
            return true;
        }else {
            return false;
        }
    }

    public  boolean isEven(int a){
        if (a%2==0){
            return true;
        }else {
            return false;
        }
    }

  public boolean isPrimeNumber(int  a){
        return true;
  }

  public  int round(double b){
        int result1 = (int)Math.round(b);
        return result1;

  }

}
